var express = require('express');
var router = express.Router();
var sign = require('./sign.js');
var bodyParser = require('body-parser');

router.get('/',function(req,res){
    res.render('index',{'uname':req.session.role.uname,'role':req.session.role.role}); 
})

router.post('/nbsysmanage/account/getuserMenu',function(req,res){
	sign.nullDataReq(req,req.session.apikey,'/sysmanage/account/getuserMenu',"get",function(ResData){
            if(ResData!=""){
                res.send(JSON.parse(ResData).menuList);
            }
    });
})
module.exports = router;